<div th:fragment="user_form">
    <form id="form" class="form-horizontal">
        <input type="hidden" id="userId">
        <div class="box-body">
            <div class="form-group">
                <label for="name" class="col-sm-2 control-label">姓名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="name" name="name" placeholder="姓名" autocomplete="off">
                </div>
            </div>
            <div class="form-group">
                <label for="mobile" class="col-sm-2 control-label">联系方式</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="mobile" name="mobile" placeholder="联系方式"
                           autocomplete="off">
                </div>
            </div>
            <div class="form-group">
                <label for="loginName" class="col-sm-2 control-label">登录名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="loginName" name="loginName" placeholder="登录名"
                           autocomplete="off">
                </div>
            </div>
            <div class="form-group">
                <label for="password" class="col-sm-2 control-label">密码</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" id="password" name="password" placeholder="密码"
                           autocomplete="off">
                </div>
            </div>
            <div class="form-group">
                <label for="parentName" class="col-sm-2 control-label">归属部门</label>
                <div class="col-sm-10">
                    <input type="hidden" id="parentId">
                    <input type="text" class="form-control" id="parentName" onfocus="openDeptTree()" autocomplete="off">
                </div>
            </div>
            <div class="form-group">
                <label for="postId" class="col-sm-2 control-label">岗位</label>
                <div class="col-sm-10">
                    <select id="postId" class=" select2" style="width: 100%;">

                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="typeck" class="col-sm-2 control-label">角色权限</label>
                <div class="col-sm-10" id="typeck">

                </div>
            </div>
            <div class="form-group">
                <label for="remarks" class="col-sm-2 control-label">备注</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="remarks" placeholder="备注" autocomplete="off">
                </div>
            </div>
        </div>
        <div class="box-footer">
            <button type="button" class="btn btn-info pull-right" onclick="save()">提交</button>
        </div>
    </form>
</div>